
.components-list {
  height: 100%;
  background: #fff;
  display: flex;
  position: relative;
  &.right {
    flex-direction: row-reverse;
  }
}
.meun-list {
  width: 40px;
  height: 100%;
  .button {
    width: 100%;
    font-size: 22px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s;
    &.active {
      background-color: @primary-color;
      color: #fff;
    }
  }
}
.box {
  width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #eee;
  border-top: none;
  border-bottom: none;
  transition: all 0.3s;
  flex: 1;
  .head {
    display: none;
    background: #fefefe;
  }
  &.open {
    width: 340px;
    .head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 40px;
      border-bottom: 1px solid #eee;
      padding: 0 10px;
      .close {
        height: 40px;
        width: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        &:hover {
          color: #000;
        }
      }
    }
    .content {
      padding: 0 10px;
      height: calc(~"100% - 40px");
    }
  }
}